Hi! I started a week ago with C++, but know already Delphi, various Blitz Dialects, PHP, SDL. So I'm not having that big troubles with C++, but now I have a little Problem: I create a structure with a) the Path to the imagefile and b) the data of the image to load it into the OpenGL Textures. My Code:
Code:
struct Struct_Texture {
public:
char Path[16];
GLuint Tex;
};
Struct_Texture Texture[20];
The problem here is C++ related, when I want to declare with
Code:
bool PreLoadTextures () {
i = 0;
Texture[0].Path = "images/nehe.bmp";
the images Path I get the Error by the Compiler: "ISO C++ forbids assignment of Arrays". When I use char Path[100]; instead of char Path[16]; I get this: "Incompatible types in Assignment of 'const char[16]' to 'char[100]'" found no help with google. Hope some1 can help me!